import {sum} from './js/m1' // 引入js模块
import movies from './json/movie.json' // 引入json模块  json的本质是字符串
// 引入json模块, webpack会自动解析为jS对象/数组

console.log(sum(2, 3))
console.log(movies)

document.write('Hello Webpack!')